import app
class ApproverApi(object):
    def __init__(self):
        self.approver_url = app.BASE_URL + "/member/realname/approverealname"
    # 定义方法_实名认证
    def approver(self,session,realname,card_id):
        data = {"real_name": realname, "card_id": card_id}
        url = self.approver_url
        response = session.post(url, files=data)
        return response
# files是文件数据类型,data是from格式,json是JSON格式
